package com.housediyadmin.command.picCommand
{   	
	import com.housediyadmin.events.picModelEvent.AddPicturesEvent;
	import com.housediyadmin.service.PictureRemoteObjectService;
	
	import org.robotlegs.mvcs.Command;
	
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/2/15
	 */ 
	public class AddPicsCommand extends Command
	{
		[Inject]
		public var event:AddPicturesEvent;
		
		[Inject]
		public var service:PictureRemoteObjectService;
		
		override public function execute():void
		{
			service.addPictures(event.picArray);
		}
	}
}